package com.augurit.gzcgwsp.qyzz.dao;

import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;

import com.augurit.common.base.dao.BaseDao;
import com.augurit.gzcgwsp.qyzz.dao.YwRqQyzzInfoDao;
import com.augurit.gzcgwsp.qyzz.entity.YwRqQyzzInfo;
import com.augurit.gzcgwsp.qyzz.entity.YwRqRyzzEquipment;

@Repository
public class YwRqQyzzInfoDao extends BaseDao<YwRqQyzzInfo, Long> {

	public YwRqQyzzInfo getInfoByQyid(long qyid, String acceptNo) {
		Session session=this.getSession();
		Criteria cri=session.createCriteria(YwRqQyzzInfo.class);
		cri.add(Restrictions.eq("qyid",qyid));
		//cri.add(Restrictions.eq("acceptNo", acceptNo));
		return (YwRqQyzzInfo) cri.list().get(0);
	}


}